package com.api.API.CodeLab.CodeShellManager;

import com.api.POJO.CodeLab.CodeShellManager.CodeShellManagerReturnMsg;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description :
 * @Author :
 * @Date : 2021/12/7
 */
@FeignClient("CodeShellManager")
public interface CodeShellManagerAPI {
    @GetMapping("/codeshell/apply/{token}")
    CodeShellManagerReturnMsg applyForResource(@PathVariable String token);

    @GetMapping("/codeshell/set/{session}")
    CodeShellManagerReturnMsg setWebSocketSession(@PathVariable String session);

    @GetMapping("/codeshell/close/{session}")
    CodeShellManagerReturnMsg closeWebSocketSession(@PathVariable String session);

    @GetMapping("/codeshell/get/useruid/{useruid}")
    CodeShellManagerReturnMsg getCodeShellHostInfoByUserUid(@PathVariable String useruid);
}
